﻿using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebTest.Core.Interfaces;
using WebTest.Core.Services;

namespace WebTest.WebApi.Configuration
{
    public static class ConfigureCore
    {
        public static IServiceCollection AddCoreService(this IServiceCollection services, IConfiguration configuration)
        {
            // member service
            services.AddTransient<IMemberSignService, MemberSignService>();

            // order service
            services.AddTransient<IOrderService, OrderService>();

            return services;
        }
    }
}
